x86 hvm: Pre-allocate per-cpu HVM memory before bringing CPUs online
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 18 Jan 2010 10:35:36 +0000 (10:35 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 18 Jan 2010 10:35:36 +0000 (10:35 +0000)
commit458e5ec73ca367cb41a5c477639799e62ea6f102
tree1f62111a6cc49cf7e103d3a073242f1122bbc88d
parent36197bd8473609a0a407446c3904932ddd242ca7
x86 hvm: Pre-allocate per-cpu HVM memory before bringing CPUs online
after boot. Avoids doing the allocations on the CPU itself, while in a
not-fully-online state and with irqs disabled. This way we avoid
assertions about irqs being disabled in e.g., tlb flush logic.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/hvm/vmx/vmcs.h